<div class="page-body">
    <div class="row">
        <div class="col-xs-12 col-md-12">
            <div class="widget">
                <div class="widget-header bordered-bottom bordered-blue">
                    <span class="widget-caption">角色</span>
                </div>
                <div class="widget-body">
                    <div id="horizontal-form">
                        <form class="form-horizontal" role="form" method="post"
                              action="{:U('doEdit',array('id'=>$admin['id']))}">
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label no-padding-right">名称：</label>
                                <div class="col-sm-3">
                                    <input type="text" name="title" class="form-control" id="inputEmail3" required
                                           value="{$admin.title}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label no-padding-right">拥有权限：</label>
                                <div class="col-sm-5">
                                    <div class="checkbox">
                                        <volist name="data" id="vo">
                                            <label>
                                                <empty name="vo.selected">
                                                    <input type="checkbox" name="rules[]" class="colored-success"
                                                           value="{$vo.id}">
                                                    <else/>
                                                    <input type="checkbox" name="rules[]" class="colored-success"
                                                           checked
                                                           value="{$vo.id}">
                                                </empty>

                                                <span class="text">{$vo.title}</span>
                                            </label>
                                        </volist>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-sm-offset-2 col-sm-10">
                                    <button type="submit" class="btn btn-blue">确认</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>